use std::{env::consts::{ARCH, OS}, path::PathBuf, sync::LazyLock};

use crate::error::WResult;

use crate::app::get_wtask_data_dir;


pub static WTASK_FILE_INSTSLL_PREFIX: LazyLock<String> = LazyLock::new(|| format!("wtask.{OS}.{ARCH}"));


pub fn dir_update() -> WResult<PathBuf> {
    get_wtask_data_dir("install", false)
}


pub fn get_local_version() -> &'static str {
    env!("CARGO_PKG_VERSION")
}
